(function() {"use strict";var __module = CC_EDITOR ? module : {exports:{}};var __filename = 'preview-scripts/assets/Script/CheckPointComponent.js';var __require = CC_EDITOR ? function (request) {return cc.require(request, require);} : function (request) {return cc.require(request, __filename);};function __define (exports, require, module) {"use strict";
cc._RF.push(module, '58ad30XPqVHQoduXxkcQ/vu', 'CheckPointComponent', __filename);
// Script/CheckPointComponent.ts

Object.defineProperty(exports, "__esModule", { value: true });
var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property;
var CheckPointComponent = (function (_super) {
    __extends(CheckPointComponent, _super);
    function CheckPointComponent() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.views = [];
        return _this;
    }
    CheckPointComponent.prototype.onLoad = function () {
        console.log("chind length", this.views.length);
        for (var i = 0; i < this.views.length; i++) {
            this.views[i].node.setPosition(0, 0);
        }
    };
    CheckPointComponent.prototype.showView = function (event, viewName) {
        this.views.filter(function (item) { console.log("name:", item.node.name, viewName); return item.node.name == viewName; }).forEach(function (item) { item.node.active = true; });
    };
    CheckPointComponent.prototype.userInfo = function () {
        var user = cc.find("Canvas/玩家信息");
        user.active = true;
    };
    CheckPointComponent.prototype.dialog = function () {
        var user = cc.find("Canvas/对话流程");
        user.active = true;
    };
    CheckPointComponent.prototype.shop = function () {
        var user = cc.find("Canvas/商城");
        user.active = true;
    };
    CheckPointComponent.prototype.scroll = function () {
        var user = cc.find("Canvas/模板滚动");
        user.active = true;
    };
    CheckPointComponent.prototype.s1 = function () {
        var user = cc.find("Canvas/复杂滚动");
        user.active = true;
    };
    CheckPointComponent.prototype.pageAdv = function () {
        var user = cc.find("Canvas/分页加强");
        user.active = true;
    };
    __decorate([
        property({ type: cc.Component, default: [] })
    ], CheckPointComponent.prototype, "views", void 0);
    CheckPointComponent = __decorate([
        ccclass
    ], CheckPointComponent);
    return CheckPointComponent;
}(cc.Component));
exports.default = CheckPointComponent;

cc._RF.pop();
        }
        if (CC_EDITOR) {
            __define(__module.exports, __require, __module);
        }
        else {
            cc.registerModuleFunc(__filename, function () {
                __define(__module.exports, __require, __module);
            });
        }
        })();
        //# sourceMappingURL=CheckPointComponent.js.map
        